const https = require("https");
const fs = require("fs");
const path = require("path");
const url = require("url");

var reqUrl = 'https://maoyan.com/';

https.get(reqUrl,(res) => {
    var str ="";
    res.on("data",(chunk)=>{
        str += chunk;
    })
    res.on("end",()=>{
        console.log(str.toString("utf8"));
    })
})
